// routers 只做路由定义
// 其他交给 Controller MVC

const controller = require('../controllers/login')

const router = require('koa-router')();

router.get('/login1', 
    ctx => {
    ctx.body = 'login???';
})

router.post('/login', controller.login);

module.exports = router.routes();